<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button>点击我，你试试我不骂你</button>
    <script>
        //1.原始写法
        var btn = document.querySelector('button');
        setTimeout(function(){
            alert('你今天是饭吃多了嘛？为什么要点我!!!')
        }, 3000)

        //2,回调函数调用
        var timer1 = setTimeout(callback, 5000);
        var timer2 = setTimeout(callback1, 10000);
        function callback() {
            console.log('东仔你真胖!!!')
        }
        function callback1() {
            console.log('苏州你真憨憨儿!!!')
        }
    </script>
</body>

</html>